<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改微信应用')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-weixinAppids-edit" th:object="${cnanWeixinAppid}">
            <input name="wxAppid" th:field="*{wxAppid}" class="form-control" type="text" required>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">微信应用APPID：</label>
                <div class="col-sm-8">
                    <input name="wxAppid" th:field="*{wxAppid}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">微信应用密钥：</label>
                <div class="col-sm-8">
                    <input name="wxAppsecret" th:field="*{wxAppsecret}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">微信应用描述：</label>
                <div class="col-sm-8">
                    <input name="wxAppidDesc" th:field="*{wxAppidDesc}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">支付渠道ID：</label>
                <div class="col-sm-8">
                    <input name="payChannelId" th:field="*{payChannelId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">应用请求渠道相关参数：</label>
                <div class="col-sm-8">
                    <textarea name="channelParameter" class="form-control">[[*{channelParameter}]]</textarea>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "cnan/weixinAppids";
        $("#form-weixinAppids-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-weixinAppids-edit').serialize());
            }
        }
    </script>
</body>
</html>